function getWindowSize() {
    // 获取窗口的宽度和高度，不包括滚动条
    let w = document.documentElement.clientWidth;
    let h = document.documentElement.clientHeight;
}

window.addEventListener("resize", getWindowSize)